package com.tarena.all;
import java.util.Scanner;

public class IfDemo1 {

	/**
	 * @param 电信计费
	 */
	public static void main(String[] args) {
		double y=0.2;
		Scanner sc=new Scanner(System.in);
		System.out.println("通话时间为：");
		double t=sc.nextDouble();
		if(t<=0){
			System.out.println("通话费用为0");	
		}else if(t<=3){
			System.out.println("通话费用为"+y+"元");
		}else{
			y=0.2+(t-3)*0.1;
			System.out.println("通话费用为"+y+"元");
		}

	}

}
